/*
 * var.h
 *
 *  Created on: 2012-11-17
 *      Author: kidlet
 */

#ifndef VAR_H_
#define VAR_H_

const int BUFFER_SIZE = 256;
const int MILLION = 1048576;
const char CONF [BUFFER_SIZE] = "OJ.conf";

const int OJ_Pend = 0;
const int OJ_Compling = 1;
const int OJ_CE = 2;
const int OJ_Run_Judge = 3;
const int OJ_AC = 4;
const int OJ_PE = 5;
const int OJ_WA = 6;
const int OJ_TLE = 7;
const int OJ_MLE = 8;
const int OJ_OLE = 9;
const int OJ_RE = 10;
const int OJ_ERROR = 11;

int solutionid = -1;
int problemid = -1;
char OJ_Home [BUFFER_SIZE];
char DB [BUFFER_SIZE];
char Mysql_Address [BUFFER_SIZE];
char Mysql_Password [BUFFER_SIZE];
char Mysql_Username [BUFFER_SIZE];
char Work_Dir [BUFFER_SIZE];
char str_tmp [BUFFER_SIZE];	//文本缓存区
MYSQL *mysql;

#endif /* VAR_H_ */
